package com.yunhuakeji.wddx.control;

import java.io.InputStream;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import com.yunhuakeji.wddx.impl.IMProfessionalAssessment;
import com.yunhuakeji.wddx.service.ZYCPService;
import com.yunhuakeji.wddx.utils.EnumTool;
import com.yunhuakeji.wddx.utils.ResultUtil;

public class ZYCPController extends ActionTicketSupport
{
	private static final long serialVersionUID = 1L;
	private InputStream inputStream;
	private String callback,post,targetID,result,bfb;
	
	public ZYCPController() throws Exception
	{
		super();
	}

	public String getExamination()
	{
		inputStream = new ResultUtil().resultString(callback, new ZYCPService().getExaminationWithPc(this.getUserid(),this.getTicket()));
		return SUCCESS;
	}
	
	public String getExaminationWithApp()
	{
		result = new ZYCPService().getExaminationWithApp(this.getUserid(),this.getTicket());
		return SUCCESS;
	}
	
	public String getPostList()
	{
		inputStream = new ResultUtil().resultString(callback, new ZYCPService().getPostListWithPc(this.getUserid(),this.getTicket(), post));
		return SUCCESS;
	}
	
	public String getPostListWithApp()
	{
		result = new ZYCPService().getPostListWithApp(this.getUserid(),this.getTicket(), bfb, post).toString();
		return SUCCESS;
	}
	
	public String getTargetDetailsFromEvaluating()
	{
		inputStream = new ResultUtil().resultString(callback,new ZYCPService().getTargetDetailsFromEvaluatingWithPc(this.getUserid(), targetID,this.getTicket()));
		return SUCCESS;
	}
	
	public String getTargetDetailsFromEvaluatingWithApp()
	{
		inputStream = new ResultUtil().resultString(callback,new ZYCPService().getTargetDetailsFromEvaluatingWithApp(this.getUserid(), targetID,this.getTicket()));
		return SUCCESS;
	}
	
	public InputStream getInputStream()
	{
		return inputStream;
	}

	public void setInputStream(InputStream inputStream)
	{
		this.inputStream = inputStream;
	}

	public String getCallback()
	{
		return callback;
	}

	public void setCallback(String callback)
	{
		this.callback = callback;
	}

	public String getPost()
	{
		return post;
	}

	public void setPost(String post)
	{
		this.post = post;
	}

	public String getTargetID()
	{
		return targetID;
	}

	public void setTargetID(String targetID)
	{
		this.targetID = targetID;
	}

	public String getResult()
	{
		return result;
	}

	public void setResult(String result)
	{
		this.result = result;
	}

	public String getBfb()
	{
		return bfb;
	}

	public void setBfb(String bfb)
	{
		this.bfb = bfb;
	}
	
	
}
